package com.lucian.ge.dao.shop;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Lucicol on 2019/6/24.
 */
public interface CartMapper {
    List<Map<String, String>> selectList(@Param("userId") Integer userId);
    Map<String, String> selectCartByUserIdProductId(@Param("userId") Integer userId,@Param("productId") Integer productId);
    void add(@Param("userId") Integer userId,@Param("productId") Integer productId,@Param("count") Integer count);
    void updateQuantity(@Param("userId") Integer userId,@Param("productId") Integer productId,@Param("count") Integer count);
    void delete(@Param("userId") Integer userId,@Param("productId") Integer productId);
}